﻿<phone:PhoneApplicationPage
    x:Class="HomeWP.SettingsPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit" 
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d"
    shell:SystemTray.IsVisible="True" BackKeyPress="PhoneApplicationPage_BackKeyPress">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--TitlePanel contains the name of the application and page title-->
        <StackPanel Grid.Row="0" Margin="12,17,0,28">
            <TextBlock Text="WPMatic" Style="{StaticResource PhoneTextNormalStyle}"/>
            <TextBlock Text="Einstellungen" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}"/>
            <StackPanel Height="347">
                <TextBlock Height="30" HorizontalAlignment="Left" x:Name="textBlock1" Text="Homematic CCU Adresse:" VerticalAlignment="Top" />
                <toolkit:PhoneTextBox Height="72" HorizontalAlignment="Left"  x:Name="TB_CCUAddress" Text="192.168.1.10" VerticalAlignment="Top" Width="426" IsEnabled="True" LostFocus="TB_CCUAddress_LostFocus" />
                <TextBlock x:Name="tbInfo" HorizontalAlignment="Left"  TextWrapping="Wrap" Text="tbInfo" VerticalAlignment="Top"/>
                <StackPanel Orientation="Horizontal" >
                    <Button Content="Lade Geräte" Height="72" HorizontalAlignment="Left" x:Name="bt_loadDevices" VerticalAlignment="Top" Width="200" Click="bt_loadDevices_Click" />
                    <Button Content="Daten löschen" Height="72" HorizontalAlignment="Left" x:Name="bt_resetDB" VerticalAlignment="Top" Width="200" Click="bt_resetDB_Click" />
                </StackPanel>
                <ProgressBar  x:Name="pgLoading" 
            		Height="10"  VerticalAlignment="Top" IsIndeterminate="True" />
                <TextBlock Height="40" HorizontalAlignment="Left"  x:Name="tB_PleaseWait" Text="Geräte werden geladen..." VerticalAlignment="Top" Style="{StaticResource PhoneTextAccentStyle}" FontSize="26" IsHitTestVisible="True" />
                <TextBlock x:Name="tbPlaseWaitSndLine" HorizontalAlignment="Left" TextWrapping="Wrap" Text="Dies kann einen Moment dauern." VerticalAlignment="Top" Margin="12,0,0,0"/>
            </StackPanel>

            <toolkit:PhoneTextBox  Name="phoneTextBox1" Text="WPMatic v0.2 (c) 2012, 2013 by Roger Zander, Francois Zbinden                                   
                                   This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Source-Code is published at: http://wpmatic.codeplex.com/" TextWrapping="Wrap" AcceptsReturn="True" FontSize="18" IsReadOnly="True" Background="{StaticResource PhoneTextLowContrastBrush}" Margin="0,25,0,0" />

        </StackPanel>


    </Grid>

</phone:PhoneApplicationPage>